package com.yu.mail.starter.exceptions;

/**
 * 邮件异常类
 * @author yuhh
 * @date 2021-05-24 17:57
 **/
public class MailException extends RuntimeException {

    private static final long serialVersionUID = 673558045592431955L;

    public MailException(String message, Throwable cause) {
        super(message, cause);
    }

    public MailException(String message) {
        this(message, null);
    }

    public MailException(Throwable cause) {
        this(cause != null ? cause.getMessage() : null, cause);
    }
}
